<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Caziac: AHandleResponse.hh Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>AHandleResponse.hh</h1><a href="_a_handle_response_8hh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef                 CAZIAC_AHANDLERESPONSE_HH</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor"># define                CAZIAC_AHANDLERESPONSE_HH</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#include                &lt;map&gt;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="preprocessor">#include                &quot;<a class="code" href="_line_response_8hh.html">LineResponse.hh</a>&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include                &quot;<a class="code" href="_i_writer_8hh.html">IWriter.hh</a>&quot;</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="keyword">namespace               </span>Caziac
<a name="l00018"></a>00018 {
<a name="l00019"></a>00019   <span class="keyword">namespace             </span>Http
<a name="l00020"></a>00020   {
<a name="l00026"></a>00026     <span class="keyword">class               </span>AHandleResponse
<a name="l00027"></a>00027     {
<a name="l00028"></a>00028 
<a name="l00029"></a>00029     <span class="keyword">private</span>:
<a name="l00030"></a>00030 
<a name="l00031"></a>00031       <span class="keywordtype">bool</span>                                              _sendHead;
<a name="l00032"></a>00032       LineResponse                                      _line;
<a name="l00033"></a>00033       std::multimap&lt;std::string, std::string&gt;           _header;
<a name="l00034"></a>00034       Tools::IWriter *                                  _writer;
<a name="l00035"></a>00035 
<a name="l00036"></a>00036     <span class="keyword">public</span>:
<a name="l00037"></a>00037 
<a name="l00045"></a>00045       <a class="code" href="class_caziac_1_1_http_1_1_a_handle_response.html#abb512fed3ee2a3f6e616d9560822444b" title="constructor of the HandleResponse">AHandleResponse</a>(Tools::IWriter *writer);
<a name="l00046"></a>00046 
<a name="l00051"></a>00051       <span class="keyword">virtual</span> <a class="code" href="class_caziac_1_1_http_1_1_a_handle_response.html#aeb45bca84c6ee7b3778064c9a813df72" title="destructor of the HandleResponse">~AHandleResponse</a>();
<a name="l00052"></a>00052 
<a name="l00061"></a>00061       std::multimap&lt;std::string, std::string&gt;<span class="keyword">const</span> &amp;    <a class="code" href="class_caziac_1_1_http_1_1_a_handle_response.html#a825e837939fc7f2551fca7723d1e9ea3" title="this function get the header of the Response">getHeader</a>() <span class="keyword">const</span>;
<a name="l00062"></a>00062 
<a name="l00070"></a>00070       LineResponse &amp;                                    <a class="code" href="class_caziac_1_1_http_1_1_a_handle_response.html#abec29b5fc318e4767cdf37676c070c43" title="this function get the LineResponse (method url version)">getLineResponse</a>();
<a name="l00071"></a>00071 
<a name="l00077"></a>00077       <span class="keywordtype">void</span>                                              <a class="code" href="class_caziac_1_1_http_1_1_a_handle_response.html#a285539dd02b020491752fa828148076c" title="write The LineRequest, the Header content and an empty line">pack</a>();
<a name="l00078"></a>00078 
<a name="l00100"></a>00100       <span class="keywordtype">bool</span>                                              <a class="code" href="class_caziac_1_1_http_1_1_a_handle_response.html#aa418134fb4b7ba580e1b7f6d94342f80" title="send a body line or an entire body">sendBody</a>(std::string <span class="keyword">const</span> &amp;bodyline);
<a name="l00101"></a>00101 
<a name="l00107"></a>00107       <span class="keywordtype">void</span>                                              <a class="code" href="class_caziac_1_1_http_1_1_a_handle_response.html#a699dbb075c8b7a31f0ce2a87c8d0686f" title="add a description to the Header">addDescription</a>(std::string <span class="keyword">const</span> &amp;key,
<a name="l00108"></a>00108                                                                        std::string <span class="keyword">const</span> &amp;def);
<a name="l00117"></a>00117       <span class="keyword">virtual</span> <span class="keywordtype">bool</span>                                      <a class="code" href="class_caziac_1_1_http_1_1_a_handle_response.html#ad98942771b7d8ae11889857ab805d734" title="[User Implementation]">operator == </a>(<span class="keywordtype">bool</span> <span class="keyword">const</span>) = 0;
<a name="l00118"></a>00118 
<a name="l00119"></a>00119     };
<a name="l00120"></a>00120   }
<a name="l00121"></a>00121 }
<a name="l00122"></a>00122 
<a name="l00123"></a>00123 <span class="preprocessor">#endif</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated on 12 Sep 2011 for Caziac by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address>
</body>
</html>
